package server;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import server.configuration.ServerConfiguration;

public class ServerConfigurationTest
{
	private static ServerConfiguration config;
	private static ServerConfiguration config2;
	
	@BeforeClass
	public static void setup()
	{
		config = new ServerConfiguration(0, "databaseurl", "username", "password");
	}
	@Before
	public void createConfig2()
	{
		config2 = new ServerConfiguration();
	}
	@Test
	public void testSetPort()
	{
		config.setPort(1);
		
		assertEquals(0, config.getPort());
		
		config2.setPort(0);
		config2.setPort(1);
		
		assertEquals(0, config2.getPort());
	}
	@Test
	public void testSetDatabaseLocation()
	{
		fail("Not yet implemented");
	}
	@Test
	public void testSetDatabaseUsername()
	{
		fail("Not yet implemented");
	}
	@Test
	public void testSetDatabasePassword()
	{
		fail("Not yet implemented");
	}
	@Test
	public void testSetKnownServers()
	{
		fail("Not yet implemented");
	}
	@Test
	public void testAddKnownServer()
	{
		fail("Not yet implemented");
	}
}
